home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / chrome / content / main.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-11-12  |  8.7 KB  |  199 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  3. <?xml-stylesheet href="main.css" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://dtv/locale/main.dtd">
  6.  
  7. <!-- add hidechrome="true" to eliminate title bar -->
  8. <window id="main" title="&main.title;"
  9.         windowtype="main"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         xmlns:html="http://www.w3.org/1999/xhtml"
  12.         hidechrome="true"
  13.         onload="onLoad();" 
  14.         onunload="onUnload();"
  15.         onclose="return onClose();"
  16.         orient="vertical"
  17.         sizemode="normal"
  18.         onkeydown="return onKeyDown(event);"
  19.         width="1020" height="680"
  20.         persist="screenX screenY width height">
  21.         <script src="chrome://dtv/content/dnd.js"/>
  22.         <script src="chrome://dtv/content/main.js"/>
  23.         <popupset><popup id="contextPopup"></popup></popupset>
  24.  
  25.         <!-- TITLEBAR -->
  26.         <hbox height="25" container="1" id="titlebar" class="titlebar"
  27.                 ondblclick="maximizeOrRestore();" >
  28. <!-- MAIN MENUBAR -->
  29. <hbox>
  30. <menubar id="titlebar-menu"
  31.         ondblclick="event.stopPropagation(); return false;">
  32.  
  33. <!-- I don't know why, but if this isn't here, we can't
  34. add more menu elements later -NN -->
  35. <menu id="placeholder-menu"/>
  36.  
  37. </menubar>
  38.  
  39. </hbox>
  40. <!-- / MAIN MENUBAR -->
  41.  
  42. <!-- WINDOW TITLE -->
  43. <titlebar flex="1" container="1">
  44. <caption flex="1" label="&main.title;"/>
  45. </titlebar>
  46. <!-- / WINDOW TITLE -->
  47.  
  48. <!-- WINDOW BUTTONS -->
  49. <hbox flex="0" width="55" height="24" align="center">
  50.                 <image id="titlebar-buttons-minimize" class="titlebar-button" onclick="minimize();" />
  51.                 <image id="titlebar-buttons-maximize" class="titlebar-button" onclick="maximizeOrRestore();" />
  52.                 <image id="titlebar-buttons-close" class="titlebar-button" onclick="onClose();" />
  53. </hbox>
  54. <!-- / WINDOW BUTTONS -->
  55.  
  56. </hbox>
  57. <!-- / TITLEBAR -->
  58.  
  59. <!-- CONTENT AREA -->
  60. <hbox flex="1">
  61.  
  62. <resizer id="resizer-left" dir="left" class="side-resizer" oncommand="return doResize(event);" />
  63.  
  64. <!-- CHANNEL BAR -->
  65.   <browser id="channelsDisplay" src="" type="content"
  66.                  flex="0" width="180" minwidth="50" maxwidth="400"
  67.                  ondraggesture="return onDragGesture(event, 'channelsDisplay');"
  68.                  ondragover="return onDragOver(event, 'channelsDisplay');"
  69.                  ondragexit="return onDragExit(event, 'channelsDisplay');"
  70.                  ondragdrop="return onDragDrop(event, 'channelsDisplay');"
  71.                  />
  72. <!-- / CHANNEL BAR -->
  73.  
  74.   <!-- DIVIDER -->
  75. <splitter id="mainSplitter" collapse="before" width="10"/>
  76. <!-- / DIVIDER -->
  77.  
  78.         <browser id="mainDisplay" src="" type="content" flex="1"
  79.              ondraggesture="return onDragGesture(event, 'mainDisplay');"
  80.              ondragover="return onDragOver(event, 'mainDisplay');"
  81.              ondragexit="return onDragExit(event, 'mainDisplay');"
  82.              ondragdrop="return onDragDrop(event, 'mainDisplay');" />
  83.         <vbox id="video-box" flex="1" collapsed="true">
  84.             <browser flex="1" id="mainDisplayVideo" 
  85.                 ondblclick="onFullscreenActivate();"
  86.                 src="chrome://dtv/content/video-display-vlc.html" 
  87.                 type="content" />
  88.             <browser id="videoInfoDisplay" src="" type="content"
  89.                     height="40px"/>
  90.         </vbox>
  91. <resizer id="resizer-right" dir="right" class="side-resizer" oncommand="return doResize(event);" />
  92.  
  93. </hbox>
  94. <!-- / CONTENT AREA -->
  95.  
  96. <!-- BOTTOM -->
  97. <hbox flex="0" height="64" id="bottom" class="bottom" align="center">
  98. <hbox flex="0" container="1" height="64" minheight="64" id="bottom-left">
  99. <hbox flex="0" maxheight="29" id="bottom-left-search" >
  100.       <textbox type="autocomplete" flex="1" id="search-textbox" onfocus="onSearchBoxFocus();" onblur="onSearchBoxBlur();" onkeydown="onSearchKeyDown(event);">
  101.         <stack onclick="jsbridge.showSearchMenu();">
  102.           <hbox>
  103.           <image id="search-icon" />
  104.           <popupset><popup id="searchMenu"></popup></popupset>
  105.           </hbox>
  106.           <image class="searchbar-dropmarker-image" />
  107.         </stack>
  108.       </textbox>
  109. </hbox>
  110. </hbox>
  111.         <spacer flex="0" width="20" id="bottom-left-blank" collapsed="true" />
  112.         <stack id="bottom-progress">
  113.                 <hbox align="center" flex="0">
  114.                         <label id="progress-text">00:00:00</label>
  115.                         <spacer flex="1" />
  116.                         <label id="duration-text">00:00:00</label>
  117.                 </hbox>
  118.                 <image id="progress-slider" class="progress-slider-inactive" left="61" top="10" />
  119.         </stack>
  120.         <spacer flex="1"/>
  121.  
  122.         <hbox flex="0" id="bottom-buttons" width="185" align="center">
  123.                 <image id="bottom-buttons-previous" class="bottom-buttons-previous-inactive" />
  124.                 <image id="bottom-buttons-stop" class="bottom-buttons-stop-inactive" />
  125.                 <image id="bottom-buttons-play" class="bottom-buttons-play-inactive" />
  126.                 <image id="bottom-buttons-fullscreen" class="bottom-buttons-fullscreen-inactive" />
  127.                 <image id="bottom-buttons-next" class="bottom-buttons-next-inactive" />
  128.         </hbox>
  129.         <spacer flex="1"/>
  130.  
  131.         <stack flex="0" id="volume">
  132.                 <image left="98" top="26" src="images/bottom-volume-slider.png" id="knob"/>
  133.         </stack>
  134.  
  135.   <resizer dir="bottomright" id="resizer-bottom-right" oncommand="return doResize(event);"/>
  136.         <spacer flex="0" width="20" id="bottom-right-blank" collapsed="true" />
  137. </hbox>
  138.  
  139. <!-- this gets filled in with the tray icon context menu -->
  140.   <popupset id="mainPopupSet">
  141.     <popup id="traypopup"/>
  142.   </popupset>       
  143.  
  144. <command id="showsearchmenu" oncommand="jsbridge.showSearchMenu();" />
  145.  
  146. <command id="Open" oncommand="openFile();" />
  147. <command id="CheckVersion" oncommand="pybridge.checkForUpdates();" />
  148. <command id="RemoveVideos" oncommand="pybridge.removeCurrentItems();" />
  149. <command id="SaveVideo" oncommand="jsbridge.saveVideo();" />
  150. <command id="CopyVideoURL" oncommand="pybridge.copyCurrentItemURL();" />
  151.  
  152. <command id="Quit" oncommand="handleExit();" />
  153.  
  154. <command id="RestoreWindow" oncommand="minimizeOrRestore();" />
  155.  
  156. <command id="Cut" oncommand="clipboardCut();" />
  157. <command id="Copy" oncommand="clipboardCopy();" />
  158. <command id="Paste" oncommand="clipboardPaste();" />
  159. <command id="SelectAll" oncommand="pybridge.selectAllItems();" />
  160.  
  161. <command id="NewChannel" oncommand="pybridge.addChannel();" />
  162. <command id="NewSearchChannel" oncommand="pybridge.createNewSearchChannel();" />
  163. <command id="NewChannelFolder" oncommand="pybridge.createNewChannelFolder();" />
  164. <command id="NewGuide" oncommand="pybridge.createNewChannelGuide();" />
  165. <command id="NewDownload" oncommand="pybridge.createNewDownload();" />
  166. <command id="RenameChannel" oncommand="pybridge.renameCurrentChannel();" />
  167. <command id="RemoveChannels" oncommand="pybridge.removeCurrentChannel();" />
  168. <command id="UpdateChannels" oncommand="pybridge.updateCurrentChannel();" />
  169. <command id="ImportChannels" oncommand="pybridge.importChannels();" />
  170. <command id="ExportChannels" oncommand="pybridge.exportChannels();" />
  171. <command id="UpdateAllChannels" oncommand="pybridge.updateChannels();" />
  172. <command id="CopyChannelURL" oncommand="pybridge.copyChannelLink();" />
  173. <command id="MailChannel" oncommand="pybridge.recommendCurrentChannel();" />
  174.  
  175. <command id="NewPlaylist" oncommand="pybridge.createNewPlaylist();" />
  176. <command id="NewPlaylistFolder" oncommand="pybridge.createNewPlaylistFolder();" />
  177. <command id="RenamePlaylist" oncommand="pybridge.renameCurrentPlaylist();" />
  178. <command id="RemovePlaylist" oncommand="pybridge.removeCurrentPlaylist();" />
  179.  
  180. <command id="PlayPauseVideo" oncommand="pybridge.playPause();" />
  181. <command id="StopVideo" oncommand="pybridge.stop();" />
  182. <command id="NextVideo" oncommand="pybridge.skip(1);" />
  183. <command id="PreviousVideo" oncommand="pybridge.skipPrevious();" />
  184. <command id="Fullscreen" oncommand="onFullscreenActivate();" />
  185.  
  186. <command id="About" oncommand="window.openDialog('chrome://dtv/content/about.xul','aboutdialog','chrome,dependent,centerscreen');" />
  187. <command id="Donate" oncommand="pybridge.openDonatePage();" />
  188. <command id="Help" oncommand="pybridge.showHelp();" />
  189. <command id="ReportBug" oncommand="pybridge.reportBug();" />
  190.  
  191. <command id="PlayUnwatched" oncommand="pybridge.playUnwatched();" />
  192. <command id="PauseDownloads" oncommand="pybridge.pauseDownloads();" />
  193. <command id="ResumeDownloads" oncommand="pybridge.resumeDownloads();" />
  194.  
  195. <command id="EditPreferences" oncommand="showOptionsDialog();" />
  196. <command id="RemoveCurrentSelection" oncommand="pybridge.removeCurrentSelection();" />
  197.  
  198. </window>
  199.